package com.ysstech.kettle.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lishuangliang
 * @since 2022-10-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("kettle_job_datasource")
public class JobDatasource extends Model<JobDatasource> {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    @TableField("USERNAME")
    private String username;

    @TableField("PASSWORD")
    private String password;

    @TableField("URL")
    private String url;

    @TableField("DRIVER_CLASS_NAME")
    private String driverClassName;

    // IP地址
    @TableField("DBHOST")
    private String dbHost;

    //数据库名称
    @TableField("DBNAME")
    private String dbName;

    //数据库端口
    @TableField("DBPORT")
    private String dbPort;

    @TableField("NAME")
    private String name;

    @TableField("FTYPE")
    private String ftype;

    @TableField("STATUS")
    private Integer status;

    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    @TableField("ADD_USER")
    private String addUser;

    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    @TableField("EDIT_USER")
    private String editUser;

    @TableField("DELETE_REASON")
    private String deleteReason;

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
